import flux from 'flux'
import isShowStore from '../stores/IsShowStore'

let Dispatcher = flux.Dispatcher;
let IsShowDispatcher = new Dispatcher();

IsShowDispatcher.register(function (action) {
    switch (action.actionType) {
        case "changeIsShow":
            isShowStore.changeIsShow(action.visible);
            isShowStore.emitChange();
            break;
    }
})

export default IsShowDispatcher;